package com.example.demo.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@ApiModel("帖子信息")
@Data
public class Article {
    @ApiModelProperty("用户Id")
    private Long id;

    @ApiModelProperty("关联板块编号")
    private Long boardId;

    @ApiModelProperty("发帖人Id")
    private Long userId;

    @ApiModelProperty("帖子标题")
    private String title;

    @ApiModelProperty("访问量")
    private Integer visitCount;

    @ApiModelProperty("回复数")
    private Integer replyCount;

    @ApiModelProperty("点赞数")
    private Integer likeCount;

    @ApiModelProperty("状态，0正常，1禁用")
    private Byte state;

    @ApiModelProperty("是否删除，0否，1是")
    private Byte deleteState;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("更新时间")
    private Date updateTime;

    @ApiModelProperty("帖子正文")
    private String content;

}